chcp  65001


REM RD /S /Q "D:\Work"
for %%a in (80 8888 9999) do (
    md "D:\Tools\THSTrade\%%a"
    RD /S /Q "D:\Work\%%a\lib"
    RD /S /Q "D:\Work\%%a\classes"
    RD /S /Q "D:\Work\%%a\generated-sources"
    RD /S /Q "D:\Work\%%a\maven-status"
	xcopy /E /I /Y "target" "D:\Work\%%a"

    @echo off
    echo chcp  65001 > D:\Work\run_%%a.bat
    echo title qe量化----%%a >> D:\Work\run_%%a.bat
    echo cd D:\Work\%%a >> D:\Work\run_%%a.bat
    echo java -Dwsn_ip=47.99.196.159 -Dwsn_port=%%a -Dsave_path=D:/Tools/THSTrade/%%a -Dfile.encoding=UTF-8 -classpath "classes;lib\*" qe.spider.MainSelect -Dwsn_ip=47.99.196.159 -Dwsn_port=%%a -Dsave_path=D:/Tools/THSTrade/%%a >> D:\Work\run_%%a.bat
)
